package com.sht.common.components.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
	public static String getMD(Date date) {
		return new SimpleDateFormat("yyyyMMdd").format(date).substring(4, 8);
	}
	public static String getNormalData(Date date) {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
	}
	
	public static void main(String[] args) {
		System.out.println(getNormalData(new Date()));
	}
}
